﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package org.aswing.util {
    import flash.utils.*;

    public class WeakMap {

        private var dic:Dictionary;

        public function WeakMap(){
            this.dic = new Dictionary(true);
        }
        public function put(_arg1, _arg2):void{
            var _local3:Dictionary = new Dictionary(true);
            _local3[_arg2] = null;
            this.dic[_arg1] = _local3;
        }
        public function getValue(_arg1){
            var _local3:*;
            var _local2:Dictionary = this.dic[_arg1];
            if (_local2){
                for (_local3 in _local2) {
                    return (_local3);
                };
            };
            return (null);
        }
        public function remove(_arg1){
            var _local2:* = this.getValue(_arg1);
            delete this.dic[_arg1];
            return (_local2);
        }

    }
}//package org.aswing.util 
